package com.gengzp.common.model.log.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName CreateTraceLogReq
 * @Description 创建链路追踪日志请求参数
 * @Author gengzp
 * @Date 2025/9/28 14:54
 */
@Data
@ApiModel("创建链路追踪日志请求参数")
public class CreateTraceLogReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -3493241985676696827L;

    /**
     * 链路追踪id
     */
    @NotBlank(message = "链路追踪id不能为空")
    @ApiModelProperty(value = "链路追踪id")
    private String traceId;

    /**
     * 服务名
     */
    @NotBlank(message = "服务名不能为空")
    @ApiModelProperty(value = "服务名")
    private String serviceName;

    /**
     * 日志内容
     */
    @NotEmpty(message = "日志内容不能为空")
    @ApiModelProperty(value = "日志内容")
    private List<String> logContents;

}
